<%@page import="helpers.UrlHelper"%>
<%@page import="entities.Article"%>
<%
Article article = (Article) request.getAttribute("article");
String acceptUrl = "";
String delUrl = "";
if (article != null) {
	delUrl = UrlHelper.getServerUrl(request) + "/remove-article?id=" + article.getId() + "&key=" + article.getAuthKey();
	acceptUrl = UrlHelper.getServerUrl(request) + "/accept-article?id=" + article.getId() + "&key=" + article.getAuthKey();
}

%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<% if (article == null) { %>
<h3>Sorry!</h3>
<p>
	This link not exist or removed. Please go to home. Thank.
</p>
<% } else { %>
<h3>Has a new article submit with id <%=article.getId() %></h3>
<p>
If you want accept this article. You can click <a href="<%=acceptUrl %>">here</a> to accept or copy url: <br /> 

<%=acceptUrl %>
</p>
<p>
If you want remove this article. You can click <a href="<%=delUrl %>">here</a> to remove or copy url: <br /> 

<%=delUrl %>
</p>
<% } %>
</body>
</html>